home *** CD-ROM | disk | FTP | other *** search
/ The Complete Utilities To…ka 501 Killer Utilities! / 501 Killer Utilities! (Macworld July 1995).cdr / Programming / RLaB / rlib / symm.r < prev    next >
Encoding:
Text File  |  1994-02-21  |  232 b   |  11 lines  |  [TEXT/RLAB]

  1. //
  2. // SYMM  SYMM(A) is the symmetric (Hermitian) part of A, (A+A')/2.
  3. //       It is the nearest symmetric (Hermitian) matrix to A in both the
  4. //       2- and the Frobenius norms.
  5. //
  6.  
  7. symm = function( A )
  8. {
  9.   return (A + A')./2;
  10. };
  11.